home *** CD-ROM | disk | FTP | other *** search
- Path: bowtech.erinet.com!jab
- From: jab@erinet.com (Jerone A. Bowers)
- Newsgroups: comp.lang.c
- Subject: Re: Rand() Function
- Date: 23 Mar 1996 15:02:46 GMT
- Organization: BowTech.
- Message-ID: <4j13qm$a6c@news.erinet.com>
- References: <4iqltj$40g@news1.sympatico.ca>
- NNTP-Posting-Host: bowtech.erinet.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Gisele Swinson (gisele.swinson@sympatico.ca) wrote:
- : How do I get a random number from a "SET" of numbers.
-
- : e.g.
-
- : I want a random number from this set:
-
- : 2, 4, 6, 8, 10
-
-
- Perhaps all you need is a random number from 0 to (number_of_
- items_in_set -1). In this case 5 items.
-
-
- --
- These thoughts are mine and mine alone. I can say that, right?
-
- EMAIL: jab@bowtech.erinet.com | Knowledge is but one
- SMAIL 9221 N Main St | step on the path to
- Dayton, OH 45415-1126 | wisdom.
-
-